package com.home.service;

import com.home.mapper.UserRepository;
import com.home.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private UserRepository userRepository;

    public List<User> findall() {
        List<User> all = userRepository.findAll();

        return all;
    }
}
